<?php
/**
 * Created by swagger_zxd.
 * User: zxd
 * Date: 2017/11/16
 * Time: 15:09
 */

namespace App\Http\Controllers\Notice;




class NoticeController extends BaseController
{
    /*
     * 通知页
     */
    public function index()
    {
         return view('notice.notice.index');
    }

    /**
     * 添加页
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function create()
    {
        return view('notice.notice.create');
    }

    /**
     * 查看通知详情页
     * @param $id
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function show($id)
    {
        $id=(int)$id;

        $notice=$this->noticeService->noticeData($id);

        return view('notice.notice.show',compact('notice'));
    }

    /**
     * 通知详情页
     * @param $id
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function edit($id)
    {
        $id=(int)$id;

        $notice=$this->noticeService->noticeData($id);


        return view('notice.notice.edit',compact('notice'));
    }

}